﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using shenghua.Common.CustomValueType;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shenghua.Order.Refunds
{
    /// <summary>
    /// 退款
    /// </summary>
    public class Refund: Entity, ICreationAudited, IModificationAudited
    {
        public long MemberId { get; set; }
        public int OrderId { get; set; }
        public string OrderNumber { get; set; }
        public Money RefundAmount { get; set; }
        public string Description { get; set; }
        public DateTime CreationTime { get; set; }
        public long? CreatorUserId { get; set; }
        public OrderRefundStatus Status { get; set; }
        public string Remark { get; set; }
        public long? LastModifierUserId { get; set; }
        public DateTime? LastModificationTime { get; set; }
    }

    public enum OrderRefundStatus
    {
        /// <summary>
        /// 处理中
        /// </summary>
        InProcess = 0,
        /// <summary>
        /// 退款完成
        /// </summary>
        Finished = 1,
        /// <summary>
        /// 已取消
        /// </summary>
        Canceled = 2
    }
}
